
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>树视图 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="TREEGRID.html" />
    
    
    <link rel="prev" href="TREEEXPBAR.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../APPS/LOCALE.html">
            
                <a href="../APPS/LOCALE.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../APPS/EXTENDED.html">
            
                <a href="../APPS/EXTENDED.html">
            
                    
                    快速介入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../APPS/STYLE.html">
            
                <a href="../APPS/STYLE.html">
            
                    
                    样式规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="../APPS/NAVG.html">
            
                <a href="../APPS/NAVG.html">
            
                    
                    导航模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="../APPS/TEMP.html">
            
                <a href="../APPS/TEMP.html">
            
                    
                    临时模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="../APPS/Theme.html">
            
                <a href="../APPS/Theme.html">
            
                    
                    应用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="../APPS/NAVPARAM.html">
            
                <a href="../APPS/NAVPARAM.html">
            
                    
                    自定义导航参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="../APPS/VIEWMESSAGE.html">
            
                <a href="../APPS/VIEWMESSAGE.html">
            
                    
                    视图消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    视图
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../VIEWS/EDITVIEW.html">
            
                <a href="../VIEWS/EDITVIEW.html">
            
                    
                    实体编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../VIEWS/EDITVIEWPAGE.html">
            
                <a href="../VIEWS/EDITVIEWPAGE.html">
            
                    
                    实体编辑视图(分页关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../VIEWS/EDITVIEWUPDOWN.html">
            
                <a href="../VIEWS/EDITVIEWUPDOWN.html">
            
                    
                    实体编辑视图(上下关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../VIEWS/EDITVIEWABOUT.html">
            
                <a href="../VIEWS/EDITVIEWABOUT.html">
            
                    
                    实体编辑视图(左右关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../VIEWS/MEDITVIEW.html">
            
                <a href="../VIEWS/MEDITVIEW.html">
            
                    
                    实体多表单编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../VIEWS/GRIDVIEW.html">
            
                <a href="../VIEWS/GRIDVIEW.html">
            
                    
                    实体表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="../VIEWS/GRIDEXPVIEW.html">
            
                <a href="../VIEWS/GRIDEXPVIEW.html">
            
                    
                    实体表格导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="../VIEWS/TABEXPVIEW.html">
            
                <a href="../VIEWS/TABEXPVIEW.html">
            
                    
                    实体分页导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.9" data-path="../VIEWS/EntityDataKanbanView.html">
            
                <a href="../VIEWS/EntityDataKanbanView.html">
            
                    
                    实体数据看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.10" data-path="../VIEWS/LISTVIEW.html">
            
                <a href="../VIEWS/LISTVIEW.html">
            
                    
                    实体列表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.11" data-path="../VIEWS/LISTEXPVIEW.html">
            
                <a href="../VIEWS/LISTEXPVIEW.html">
            
                    
                    实体列表导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.12" data-path="../VIEWS/DATAVIEW.html">
            
                <a href="../VIEWS/DATAVIEW.html">
            
                    
                    实体数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.13" data-path="../VIEWS/OPTIONVIEW.html">
            
                <a href="../VIEWS/OPTIONVIEW.html">
            
                    
                    实体选项操作视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.14" data-path="../VIEWS/DATAVIEWEXPVIEW.html">
            
                <a href="../VIEWS/DATAVIEWEXPVIEW.html">
            
                    
                    实体卡片导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.15" data-path="../VIEWS/CALENDARVIEW.html">
            
                <a href="../VIEWS/CALENDARVIEW.html">
            
                    
                    实体日历视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.16" data-path="../VIEWS/DAREXPVIEW.html">
            
                <a href="../VIEWS/DAREXPVIEW.html">
            
                    
                    实体日历导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.17" data-path="../VIEWS/TREEVIEW.html">
            
                <a href="../VIEWS/TREEVIEW.html">
            
                    
                    实体树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.18" data-path="../VIEWS/TREEEXPVIEW.html">
            
                <a href="../VIEWS/TREEEXPVIEW.html">
            
                    
                    实体树导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.19" data-path="../VIEWS/TREEGRIDEXVIEW.html">
            
                <a href="../VIEWS/TREEGRIDEXVIEW.html">
            
                    
                    实体树表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.20" data-path="../VIEWS/INDEXVIEW.html">
            
                <a href="../VIEWS/INDEXVIEW.html">
            
                    
                    应用首页视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.21" data-path="../VIEWS/AppKanBanView.html">
            
                <a href="../VIEWS/AppKanBanView.html">
            
                    
                    应用看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.22" data-path="../VIEWS/ENTITYKANBANVIEW.html">
            
                <a href="../VIEWS/ENTITYKANBANVIEW.html">
            
                    
                    实体看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.23" data-path="../VIEWS/GANTTVIEW.html">
            
                <a href="../VIEWS/GANTTVIEW.html">
            
                    
                    实体甘特图视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.24" data-path="../VIEWS/ENTITYCHARTVIEW.html">
            
                <a href="../VIEWS/ENTITYCHARTVIEW.html">
            
                    
                    实体图表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.25" data-path="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                <a href="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                    
                    实体数据选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.26" data-path="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                    
                    实体选择表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.27" data-path="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                    
                    实体选择树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.28" data-path="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                <a href="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                    
                    实体索引关系选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.29" data-path="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                    
                    实体工作流动态导航表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.30" data-path="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                    
                    实体工作流动态编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.31" data-path="../VIEWS/LOGINVIEW.html">
            
                <a href="../VIEWS/LOGINVIEW.html">
            
                    
                    应用登录视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.32" data-path="../VIEWS/DATAUPLOADVIEW.html">
            
                <a href="../VIEWS/DATAUPLOADVIEW.html">
            
                    
                    应用数据导入视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.33" data-path="../VIEWS/REDIRECTVIEW.html">
            
                <a href="../VIEWS/REDIRECTVIEW.html">
            
                    
                    实体数据重定向视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.34" data-path="../VIEWS/CUSTOM.html">
            
                <a href="../VIEWS/CUSTOM.html">
            
                    
                    实体自定义视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.35" data-path="../VIEWS/WIZARDVIEW.html">
            
                <a href="../VIEWS/WIZARDVIEW.html">
            
                    
                    实体向导视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    部件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="FORM.html">
            
                <a href="FORM.html">
            
                    
                    表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="GRID.html">
            
                <a href="GRID.html">
            
                    
                    表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="GRIDEXPBAR.html">
            
                <a href="GRIDEXPBAR.html">
            
                    
                    表格导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="SEARCHBAR.html">
            
                <a href="SEARCHBAR.html">
            
                    
                    搜索栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="SEARCHFORM.html">
            
                <a href="SEARCHFORM.html">
            
                    
                    搜索表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="DataKanBan.html">
            
                <a href="DataKanBan.html">
            
                    
                    数据看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="PortalComponents.html">
            
                <a href="PortalComponents.html">
            
                    
                    门户部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="TABEXPPANEL.html">
            
                <a href="TABEXPPANEL.html">
            
                    
                    分页导航面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="TABVIEWPANEL.html">
            
                <a href="TABVIEWPANEL.html">
            
                    
                    分页视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="APPMENU.html">
            
                <a href="APPMENU.html">
            
                    
                    应用菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="LIST.html">
            
                <a href="LIST.html">
            
                    
                    列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="LISTEXPBAR.html">
            
                <a href="LISTEXPBAR.html">
            
                    
                    列表导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="PANEL.html">
            
                <a href="PANEL.html">
            
                    
                    面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.14" data-path="DATAVIEWCTRL.html">
            
                <a href="DATAVIEWCTRL.html">
            
                    
                    数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.15" data-path="DATAVIEWEXPBAR.html">
            
                <a href="DATAVIEWEXPBAR.html">
            
                    
                    卡片视图导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.16" data-path="DataRelationPage.html">
            
                <a href="DataRelationPage.html">
            
                    
                    数据关系分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.17" data-path="DATARELATIONFIELD.html">
            
                <a href="DATARELATIONFIELD.html">
            
                    
                    数据关系栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.18" data-path="CALENDAR.html">
            
                <a href="CALENDAR.html">
            
                    
                    日历部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.19" data-path="CALENDARTIMELINE.html">
            
                <a href="CALENDARTIMELINE.html">
            
                    
                    日历部件(时间轴)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.20" data-path="CALENDAREXPBAR.html">
            
                <a href="CALENDAREXPBAR.html">
            
                    
                    日历导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.21" data-path="TREEEXPBAR.html">
            
                <a href="TREEEXPBAR.html">
            
                    
                    树导航
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.3.22" data-path="TREEVIEWUNIT.html">
            
                <a href="TREEVIEWUNIT.html">
            
                    
                    树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.23" data-path="TREEGRID.html">
            
                <a href="TREEGRID.html">
            
                    
                    树表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.24" data-path="MULTIEDITVIEWPANEL.html">
            
                <a href="MULTIEDITVIEWPANEL.html">
            
                    
                    多编辑视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.25" data-path="KANBANVIEWUNIT.html">
            
                <a href="KANBANVIEWUNIT.html">
            
                    
                    看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.26" data-path="GANTT.html">
            
                <a href="GANTT.html">
            
                    
                    甘特图部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.27" data-path="DATACHART.html">
            
                <a href="DATACHART.html">
            
                    
                    数据图表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.28" data-path="SELECTVIEWPANEL.html">
            
                <a href="SELECTVIEWPANEL.html">
            
                    
                    选择视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.29" data-path="WIZARDPANEL.html">
            
                <a href="WIZARDPANEL.html">
            
                    
                    向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.30" data-path="STATEWIZARDPANEL.html">
            
                <a href="STATEWIZARDPANEL.html">
            
                    
                    状态向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.31" data-path="CONTEXTMENU.html">
            
                <a href="CONTEXTMENU.html">
            
                    
                    上下文菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.32" data-path="TOOLBAR.html">
            
                <a href="TOOLBAR.html">
            
                    
                    工具栏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    编辑器
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../EDITORS/BASIC.html">
            
                <a href="../EDITORS/BASIC.html">
            
                    
                    基础类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../EDITORS/SHOW.html">
            
                <a href="../EDITORS/SHOW.html">
            
                    
                    展示类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../EDITORS/SELECT.html">
            
                <a href="../EDITORS/SELECT.html">
            
                    
                    选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../EDITORS/TIME.html">
            
                <a href="../EDITORS/TIME.html">
            
                    
                    时间类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../EDITORS/FILEUPLOADlIST.html">
            
                <a href="../EDITORS/FILEUPLOADlIST.html">
            
                    
                    文件上传类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../EDITORS/DATASELECT.html">
            
                <a href="../EDITORS/DATASELECT.html">
            
                    
                    数据选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../EDITORS/AUTOCOMPLETELIST.html">
            
                <a href="../EDITORS/AUTOCOMPLETELIST.html">
            
                    
                    自动填充类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    逻辑
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../LOGIC/APPFUNC.html">
            
                <a href="../LOGIC/APPFUNC.html">
            
                    
                    应用功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../LOGIC/ACTION.html">
            
                <a href="../LOGIC/ACTION.html">
            
                    
                    界面行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../LOGIC/VIEWLOGIC.html">
            
                <a href="../LOGIC/VIEWLOGIC.html">
            
                    
                    视图逻辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    UI服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="../UISERVICE/CTRLSERVICE.html">
            
                <a href="../UISERVICE/CTRLSERVICE.html">
            
                    
                    部件服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../UISERVICE/UISERVICE.html">
            
                <a href="../UISERVICE/UISERVICE.html">
            
                    
                    界面服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="../UISERVICE/AUTHSERVICE.html">
            
                <a href="../UISERVICE/AUTHSERVICE.html">
            
                    
                    权限服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../UISERVICE/CODELISTSERVICE.html">
            
                <a href="../UISERVICE/CODELISTSERVICE.html">
            
                    
                    代码表服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="../UISERVICE/COUNTERSERVICE.html">
            
                <a href="../UISERVICE/COUNTERSERVICE.html">
            
                    
                    计数器服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="../UISERVICE/APPUTILSERVICE.html">
            
                <a href="../UISERVICE/APPUTILSERVICE.html">
            
                    
                    应用功能服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                <a href="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                    
                    视图消息服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    数据服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../DATASERVICE/DATASERVICE.html">
            
                <a href="../DATASERVICE/DATASERVICE.html">
            
                    
                    数据服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../APPS/PROBLEM.html">
            
                <a href="../APPS/PROBLEM.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >树视图</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x6811;&#x89C6;&#x56FE;"><a href="https://modelapi.ibizlab.cn/#/net/ibizsys/model/control/tree/IPSDETree" target="_blank">&#x6811;&#x89C6;&#x56FE;</a></h2>
<p>&#x6811;&#x89C6;&#x56FE;&#x90E8;&#x4EF6;&#x662F;&#x7528;&#x6765;&#x5448;&#x73B0;&#x5B9E;&#x4F53;&#x6811;&#x89C6;&#x56FE;&#x7684;&#x4E91;&#x89C6;&#x56FE;&#x90E8;&#x4EF6;&#xFF1B;&#x901A;&#x8FC7;&#x9009;&#x62E9;&#x4E0D;&#x540C;&#x7684;&#x5B9E;&#x4F53;&#x6811;&#x89C6;&#x56FE;&#xFF0C;&#x5728;&#x754C;&#x9762;&#x5448;&#x73B0;&#x4E0D;&#x540C;&#x7684;&#x6811;&#x83DC;&#x5355;&#x4EA4;&#x4E92;&#x754C;&#x9762;&#x6811;&#x89C6;&#x56FE;&#x90E8;&#x4EF6;&#x662F;&#x7528;&#x6765;&#x5448;&#x73B0;&#x83DC;&#x5355;&#x8282;&#x70B9;&#x95F4;&#x6709;&#x5173;&#x8054;&#x7684;&#x4E91;&#x89C6;&#x56FE;&#x90E8;&#x4EF6;&#x3002;</p>
<h2 id="&#x5448;&#x73B0;&#x6548;&#x679C;">&#x5448;&#x73B0;&#x6548;&#x679C;</h2>
<p><img src="images/TREEVIEWUNIT.png" alt="image-20201013161313306"></p>
<h2 id="&#x57FA;&#x7840;&#x7528;&#x6CD5;"><a href="http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7/tree/master/@CONTROL/%E6%A0%91%E8%A7%86%E5%9B%BE" target="_blank">&#x57FA;&#x7840;&#x7528;&#x6CD5;</a></h2>
<h3 id="ui&#x7ED3;&#x6784;">UI&#x7ED3;&#x6784;</h3>
<table>
<thead>
<tr>
<th>&#x7F16;&#x53F7;</th>
<th>&#x529F;&#x80FD;</th>
<th>&#x4F7F;&#x7528;&#x6A21;&#x578B;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>C230U0001</td>
<td>&#x6837;&#x5F0F;&#x8868;</td>
<td>getPSSysCss()</td>
<td>&#x6811;&#x89C6;&#x56FE;&#x90E8;&#x4EF6;&#x6837;&#x5F0F;&#x8868;</td>
</tr>
<tr>
<td>C230U0002</td>
<td>&#x81EA;&#x5B9A;&#x4E49;&#x63D2;&#x4EF6;</td>
<td>getRender()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;<a href="../APPS/EXTENDED.html">&#x5FEB;&#x901F;&#x4ECB;&#x5165;</a>&#x7BC7;</td>
</tr>
<tr>
<td>C230U0003</td>
<td>&#x5DE5;&#x5177;&#x680F;</td>
<td>getPSControls()</td>
<td>&#x6811;&#x8282;&#x70B9;&#x53F3;&#x952E;&#x83DC;&#x5355;</td>
</tr>
</tbody>
</table>
<h3 id="&#x884C;&#x4E3A;&#x903B;&#x8F91;">&#x884C;&#x4E3A;&#x903B;&#x8F91;</h3>
<table>
<thead>
<tr>
<th>&#x7F16;&#x53F7;</th>
<th>&#x529F;&#x80FD;</th>
<th>&#x5173;&#x952E;&#x8BCD;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>C230L0001</td>
<td>&#x90E8;&#x4EF6;&#x52A0;&#x8F7D;&#x4E4B;&#x540E;</td>
<td>afterCreated</td>
<td>&#x83B7;&#x53D6;&#x89C6;&#x56FE;&#x7684;&#x72B6;&#x6001;&#x8BA2;&#x9605;&#x5BF9;&#x8C61;&#x548C;&#x5E94;&#x7528;&#x4E2D;&#x5FC3;&#x670D;&#x52A1;&#xFF0C;&#x6839;&#x636E;&#x5176;&#x901A;&#x77E5;&#x6D88;&#x606F;&#x6267;&#x884C;&#x76F8;&#x5E94;&#x7684;&#x884C;&#x4E3A;</td>
</tr>
<tr>
<td>C230L0002</td>
<td>&#x6570;&#x636E;&#x52A0;&#x8F7D;</td>
<td>load</td>
<td>&#x6574;&#x5408;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x4E0A;&#x4E0B;&#x6587;&#x548C;&#x89C6;&#x56FE;&#x53C2;&#x6570;&#xFF0C;&#x4ECE;&#x90E8;&#x4EF6;&#x670D;&#x52A1;&#x5BF9;&#x8C61;&#x4E2D;&#x83B7;&#x53D6;&#x8282;&#x70B9;&#x6570;&#x636E;&#xFF0C;&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x5C55;&#x5F00;&#x8282;&#x70B9;&#x548C;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#xFF0C;&#x629B;&#x51FA;load&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>C230L0003</td>
<td>&#x9ED8;&#x8BA4;&#x5C55;&#x5F00;</td>
<td>formatExpanded</td>
<td>&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x5C55;&#x5F00;&#x7684;&#x8282;&#x70B9;</td>
</tr>
<tr>
<td>C230L0004</td>
<td>&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;</td>
<td>setDefaultSelection</td>
<td>&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#x7684;&#x8282;&#x70B9;&#xFF0C;&#x629B;&#x51FA;selectionchange&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>C230L0005</td>
<td>&#x8BA1;&#x7B97;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x4E0A;&#x4E0B;&#x6587;</td>
<td>computecurNodeContext</td>
<td>&#x8BA1;&#x7B97;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x7684;&#x4E0A;&#x4E0B;&#x6587;</td>
</tr>
<tr>
<td>C230L0006</td>
<td>&#x5237;&#x65B0;&#x5F53;&#x524D;&#x8282;&#x70B9;</td>
<td>refresh_current</td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x9009;&#x4E2D;&#x6570;&#x636E;&#x9879;&#x7684;&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x5C06;&#x5176;&#x5408;&#x5E76;&#x5230;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x4E0A;&#x4E0B;&#x6587;&#x4E2D;&#xFF0C;&#x8282;&#x70B9;&#x7684;key&#x4F5C;&#x4E3A;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x9644;&#x52A0;&#x53C2;&#x6570;&#x4F20;&#x5165;&#x5237;&#x65B0;&#x8282;&#x70B9;&#x51FD;&#x6570;&#x4E2D;(&#x4E0D;&#x5237;&#x65B0;&#x7236;&#x8282;&#x70B9;)</td>
</tr>
<tr>
<td>C230L0007</td>
<td>&#x5237;&#x65B0;&#x7236;&#x8282;&#x70B9;</td>
<td>refresh_parent</td>
<td>&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x9009;&#x4E2D;&#x6570;&#x636E;&#x9879;&#x7684;&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x5C06;&#x5176;&#x5408;&#x5E76;&#x5230;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x4E0A;&#x4E0B;&#x6587;&#x4E2D;&#xFF0C;&#x8282;&#x70B9;&#x7684;key&#x4F5C;&#x4E3A;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x9644;&#x52A0;&#x53C2;&#x6570;&#x4F20;&#x5165;&#x5237;&#x65B0;&#x8282;&#x70B9;&#x51FD;&#x6570;&#x4E2D;(&#x5237;&#x65B0;&#x7236;&#x6570;&#x636E;)</td>
</tr>
<tr>
<td>C230L0008</td>
<td>&#x5237;&#x65B0;&#x8282;&#x70B9;</td>
<td>refresh_node</td>
<td>&#x5237;&#x65B0;&#x8282;&#x70B9;</td>
</tr>
<tr>
<td>C230L0009</td>
<td>&#x5237;&#x65B0;&#x6570;&#x636E;</td>
<td>refresh_all</td>
<td>&#x91CD;&#x65B0;&#x521D;&#x59CB;&#x5316;&#x90E8;&#x4EF6;</td>
</tr>
<tr>
<td>C230L0010</td>
<td>&#x9009;&#x4E2D;&#x6570;&#x636E;&#x53D8;&#x66F4;(&#x591A;&#x9009;)</td>
<td>onCheck</td>
<td>&#x591A;&#x9009;&#x65F6;&#x89E6;&#x53D1;&#xFF0C;&#x8BBE;&#x7F6E;&#x5DF2;&#x9009;&#x4E2D;&#x6570;&#x636E;&#x96C6;&#x5408;&#x5E76;&#x629B;&#x51FA;selectionchange&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>C230L0011</td>
<td>&#x9009;&#x4E2D;&#x6570;&#x636E;&#x53D8;&#x66F4;(&#x5355;&#x9009;)</td>
<td>selectionChange</td>
<td>&#x5355;&#x9009;&#x65F6;&#x89E6;&#x53D1;&#xFF0C;&#x8BBE;&#x7F6E;&#x5DF2;&#x9009;&#x4E2D;&#x6570;&#x636E;&#x96C6;&#x5408;&#x5E76;&#x629B;&#x51FA;selectionchange&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>C230L0012</td>
<td>&#x6811;&#x8282;&#x70B9;&#x7B5B;&#x9009;</td>
<td>filterNode</td>
<td>&#x5BF9;&#x6811;&#x8282;&#x70B9;&#x8FDB;&#x884C;&#x7B5B;&#x9009;</td>
</tr>
<tr>
<td>C230L0013</td>
<td>&#x8BBE;&#x7F6E;&#x9009;&#x4E2D;&#x9AD8;&#x4EAE;&#x6837;&#x5F0F;</td>
<td>setTreeNodeHighLight</td>
<td>&#x8BBE;&#x7F6E;&#x9009;&#x4E2D;&#x6837;&#x5F0F;</td>
</tr>
<tr>
<td>C230L0014</td>
<td>&#x6267;&#x884C;&#x9ED8;&#x8BA4;&#x754C;&#x9762;&#x884C;&#x4E3A;</td>
<td>doDefaultAction</td>
<td>&#x5982;&#x679C;&#x8282;&#x70B9;&#x914D;&#x7F6E;&#x4E86;&#x4E0A;&#x4E0B;&#x6587;&#x83DC;&#x5355;&#x4E14;&#x4E0A;&#x4E0B;&#x6587;&#x83DC;&#x5355;&#x5177;&#x6709;&#x9ED8;&#x8BA4;&#x754C;&#x9762;&#x884C;&#x4E3A;&#xFF0C;&#x53CC;&#x51FB;&#x6811;&#x8282;&#x70B9;&#x65F6;&#x5C06;&#x4F1A;&#x89E6;&#x53D1;&#x8BE5;&#x754C;&#x9762;&#x884C;&#x4E3A;&#x3002;&#x629B;&#x51FA;nodedblclick&#x4E8B;&#x4EF6;</td>
</tr>
<tr>
<td>C230L0015</td>
<td>&#x7ED8;&#x5236;&#x53F3;&#x952E;&#x83DC;&#x5355;</td>
<td>renderContextMenu</td>
<td>&#x7ED8;&#x5236;&#x6BCF;&#x4E2A;&#x8282;&#x70B9;&#x7684;&#x53F3;&#x952E;&#x83DC;&#x5355;</td>
</tr>
<tr>
<td>C230L0016</td>
<td>&#x663E;&#x793A;&#x4E0A;&#x4E0B;&#x6587;&#x83DC;&#x5355;</td>
<td>showContext</td>
<td>&#x6839;&#x636E;&#x8BA1;&#x7B97;&#x7684;&#x8282;&#x70B9;&#x53F3;&#x952E;&#x6743;&#x9650;&#x72B6;&#x6001;&#xFF0C;&#x8BBE;&#x7F6E;&#x8282;&#x70B9;&#x4E0A;&#x4E0B;&#x6587;&#x83DC;&#x5355;&#x9879;&#x7684;&#x663E;&#x793A;&#x72B6;&#x6001;</td>
</tr>
<tr>
<td>C230L0017</td>
<td>&#x8BA1;&#x7B97;&#x8282;&#x70B9;&#x53F3;&#x952E;&#x6743;&#x9650;</td>
<td>computeNodeState</td>
<td>&#x901A;&#x8FC7;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x6570;&#x636E;&#xFF0C;&#x6811;&#x8282;&#x70B9;&#x4E0A;&#x4E0B;&#x6587;&#x83DC;&#x5355;&#x6A21;&#x578B;&#xFF0C;&#x5F53;&#x524D;UI&#x5B9E;&#x4F53;&#x670D;&#x52A1;&#x8BA1;&#x7B97;&#x4E0A;&#x4E0B;&#x6587;&#x83DC;&#x5355;&#x6743;&#x9650;</td>
</tr>
</tbody>
</table>
<blockquote style="border-color: blue;"><p>&#x7ED8;&#x5236;&#x53F3;&#x952E;&#x83DC;&#x5355;</p></blockquote>

<p>&#x82E5;&#x8282;&#x70B9;&#x914D;&#x7F6E;&#x4E86;&#x53F3;&#x952E;&#x83DC;&#x5355;&#xFF0C;&#x5219;&#x4F1A;&#x5C06;&#x914D;&#x7F6E;&#x7684;&#x53F3;&#x952E;&#x83DC;&#x5355;&#x7ED8;&#x5236;&#x51FA;&#x6765;&#x3002;</p>
<pre><code class="lang-typescript">    /**
     * &#x7ED8;&#x5236;&#x53F3;&#x952E;&#x83DC;&#x5355;
     *
     * @param {*} node
     * @returns
     * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
     */
    public renderContextMenu(node: any) {
        let content;

        if (node &amp;&amp; node.data) {
            const data: any = JSON.parse(JSON.stringify(node.data));
            this.currentselectedNode = { ...data };
            const tags: string[] = data.id.split(&apos;;&apos;);
            let copyActionModel:any =Util.deepCopy(this.actionModel);
&lt;#if ctrl.getPSControls()??&gt;
&lt;#list ctrl.getPSControls() as childCtrl&gt;
&lt;#if childCtrl.getControlType() == &quot;CONTEXTMENU&quot;&gt;
            if (tags[0] === &quot;${childCtrl.getOwner().getNodeType()}&quot;) {
                content = this.renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}();
            }
&lt;/#if&gt;
&lt;/#list&gt;
&lt;/#if&gt;
        }
        return content;
    }
&lt;#if ctrl.getPSControls()??&gt;
&lt;#list ctrl.getPSControls() as childCtrl&gt;
&lt;#if childCtrl.getControlType() == &quot;CONTEXTMENU&quot;&gt;

    /**
     * &#x7ED8;&#x5236;${childCtrl.getOwner().getNodeType()}&#x7C7B;&#x578B;&#x53F3;&#x952E;&#x83DC;&#x5355;
     *
     * @returns
     * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
     */
    public renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}() {
        return (
&lt;@ibizindent blank=12&gt;
${P.getCtrlCode(childCtrl, &apos;CONTROL.html&apos;).code}
&lt;/@ibizindent&gt;
        );
    }
&lt;/#if&gt;
&lt;/#list&gt;
&lt;/#if&gt;
</code></pre>
<blockquote style="border-color: blue;"><p>&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;</p></blockquote>

<p>&#x52A0;&#x8F7D;&#x6570;&#x636E;&#x4E4B;&#x540E;&#x8BBE;&#x7F6E;&#x8282;&#x70B9;&#x7684;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#xFF1A;&#x5982;&#x679C;&#x662F;&#x6811;&#x5BFC;&#x822A;&#x4E2D;&#xFF0C;&#x6CA1;&#x6709;&#x6570;&#x636E;&#x662F;&#x9009;&#x4E2D;&#x72B6;&#x6001;&#x5219;&#x4F1A;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#x7B2C;&#x4E00;&#x4E2A;&#x8282;&#x70B9;&#xFF0C;&#x8BBE;&#x7F6E;&#x5B83;&#x7684;&#x9AD8;&#x4EAE;&#x72B6;&#x6001;&#xFF0C;&#x5E76;&#x5C06;&#x9ED8;&#x8BA4;&#x6570;&#x636E;&#x8D4B;&#x503C;&#x7ED9;&#x5F53;&#x524D;&#x9009;&#x4E2D;&#x6570;&#x636E;&#x9879;&#xFF0C;&#x5982;&#x679C;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x53EF;&#x7528;&#xFF0C;&#x5C06;&#x5F53;&#x524D;&#x9009;&#x4E2D;&#x6570;&#x636E;&#x9879;&#x62F7;&#x8D1D;&#x5230;&#x9009;&#x4E2D;&#x8282;&#x70B9;&#x5E76;&#x629B;&#x51FA;selectionchange&#x4E8B;&#x4EF6;&#x3002;&#x5982;&#x679C;&#x6709;&#x9700;&#x8981;&#x6570;&#x636E;&#x56DE;&#x663E;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x83B7;&#x53D6;&#x9700;&#x8981;&#x6570;&#x636E;&#x56DE;&#x663E;&#x7684;&#x8282;&#x70B9;&#x6570;&#x636E;&#xFF0C;&#x629B;&#x51FA;selectionchange&#x4E8B;&#x4EF6;&#x5E76;&#x6839;&#x636E;&#x5355;&#x591A;&#x9009;&#x60C5;&#x51B5;&#x8BBE;&#x7F6E;&#x9009;&#x4E2D;&#x72B6;&#x6001;&#x3002;&#x5982;&#x679C;&#x662F;&#x4E00;&#x4E2A;&#x7236;&#x8282;&#x70B9;&#x9009;&#x4E2D;&#xFF0C;&#x5219;&#x8BBE;&#x7F6E;&#x5176;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;&#x9009;&#x4E2D;&#x3002;</p>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;,&#x56DE;&#x663E;&#x6570;&#x9879;&#xFF0C;&#x9009;&#x4E2D;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;
     *
     * @param {any[]} items &#x5F53;&#x524D;&#x8282;&#x70B9;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;&#x96C6;&#x5408;
     * @param {boolean} isRoot &#x662F;&#x5426;&#x662F;&#x52A0;&#x8F7D;&#x6839;&#x8282;&#x70B9;
     * @param {boolean} isSelectedAll &#x662F;&#x5426;&#x9009;&#x4E2D;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;
     * @memberof UsrBase
     */</span>
    <span class="hljs-keyword">public</span> setDefaultSelection(items: <span class="hljs-built_in">any</span>[], isRoot: <span class="hljs-built_in">boolean</span> = <span class="hljs-literal">false</span>, isSelectedAll: <span class="hljs-built_in">boolean</span> = <span class="hljs-literal">false</span>): <span class="hljs-built_in">void</span> {
        <span class="hljs-keyword">if</span>(items.length == <span class="hljs-number">0</span>){
            <span class="hljs-keyword">return</span>;
        }
        <span class="hljs-keyword">let</span> defaultData: <span class="hljs-built_in">any</span>;
        <span class="hljs-comment">// &#x5BFC;&#x822A;&#x4E2D;&#x9009;&#x4E2D;&#x7B2C;&#x4E00;&#x6761;&#x914D;&#x7F6E;&#x7684;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;,&#x6CA1;&#x6709;&#x9009;&#x4E2D;&#x7B2C;&#x4E00;&#x6761;</span>
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.isSelectFirstDefault){
            <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.isSingleSelect){
                <span class="hljs-keyword">let</span> index = items.findIndex((item: <span class="hljs-built_in">any</span>) =&gt; item.selected);
                <span class="hljs-keyword">if</span>(index === <span class="hljs-number">-1</span>) {
                    <span class="hljs-keyword">if</span>(isRoot){
                        index = <span class="hljs-number">0</span>;
                    }<span class="hljs-keyword">else</span>{
                        <span class="hljs-keyword">return</span>;
                    }
                }
                defaultData = items[index];
                <span class="hljs-keyword">this</span>.setTreeNodeHighLight(defaultData);
                <span class="hljs-keyword">this</span>.currentselectedNode = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(defaultData));
                <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.isBranchAvailable || defaultData.leaf){
                    <span class="hljs-keyword">this</span>.selectedNodes = [<span class="hljs-keyword">this</span>.currentselectedNode];
                    <span class="hljs-keyword">this</span>.$emit(<span class="hljs-string">&apos;selectionchange&apos;</span>, <span class="hljs-keyword">this</span>.selectedNodes);
                } 
            }
        }
        <span class="hljs-comment">// &#x5DF2;&#x9009;&#x6570;&#x636E;&#x7684;&#x56DE;&#x663E;</span>
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.echoselectedNodes &amp;&amp; <span class="hljs-keyword">this</span>.echoselectedNodes.length &gt; <span class="hljs-number">0</span>){
            <span class="hljs-keyword">let</span> checkedNodes = items.filter((item:<span class="hljs-built_in">any</span>)=&gt;{
                <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.echoselectedNodes.some((val:<span class="hljs-built_in">any</span>)=&gt; {
                    <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.is(item.srfkey,val.srfkey) &amp;&amp; <span class="hljs-built_in">Object</span>.is(item.srfmajortext,val.srfmajortext)){
                        val.used = <span class="hljs-literal">true</span>;
                        <span class="hljs-keyword">this</span>.selectedNodes.push(val);
                        <span class="hljs-keyword">this</span>.$emit(<span class="hljs-string">&apos;selectionchange&apos;</span>, <span class="hljs-keyword">this</span>.selectedNodes);
                        <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;
                    }
                });
            });
            <span class="hljs-keyword">if</span>(checkedNodes.length &gt; <span class="hljs-number">0</span>){
                <span class="hljs-keyword">this</span>.echoselectedNodes = <span class="hljs-keyword">this</span>.echoselectedNodes.filter((item:<span class="hljs-built_in">any</span>)=&gt; !item.used);
                <span class="hljs-comment">// &#x7236;&#x8282;&#x70B9;&#x9009;&#x4E2D;&#x65F6;&#xFF0C;&#x4E0D;&#x9700;&#x8981;&#x6267;&#x884C;&#x8FD9;&#x6BB5;&#xFF0C;&#x4F1A;&#x9009;&#x4E2D;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;</span>
                <span class="hljs-keyword">if</span>(!isSelectedAll){
                    <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.isSingleSelect){
                        <span class="hljs-keyword">this</span>.setTreeNodeHighLight(checkedNodes[<span class="hljs-number">0</span>]);
                        <span class="hljs-keyword">this</span>.currentselectedNode = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(checkedNodes[<span class="hljs-number">0</span>]));
                        <span class="hljs-keyword">this</span>.selectedNodes = [<span class="hljs-keyword">this</span>.currentselectedNode];
                    }<span class="hljs-keyword">else</span>{
                        <span class="hljs-keyword">this</span>.selectedNodes = <span class="hljs-keyword">this</span>.selectedNodes.concat(checkedNodes);
                        <span class="hljs-keyword">const</span> tree: <span class="hljs-built_in">any</span> = <span class="hljs-keyword">this</span>.$refs.treeexpbar_tree;
                        tree.setCheckedNodes(<span class="hljs-keyword">this</span>.selectedNodes);
                    }
                }
            }
        }
        <span class="hljs-comment">// &#x7236;&#x8282;&#x70B9;&#x9009;&#x4E2D;&#x65F6;&#xFF0C;&#x9009;&#x4E2D;&#x6240;&#x6709;&#x5B50;&#x8282;&#x70B9;</span>
        <span class="hljs-keyword">if</span>(isSelectedAll){
            <span class="hljs-keyword">let</span> leafNodes = items.filter((item:<span class="hljs-built_in">any</span>) =&gt; item.leaf);
            <span class="hljs-keyword">this</span>.selectedNodes = <span class="hljs-keyword">this</span>.selectedNodes.concat(leafNodes);
            <span class="hljs-keyword">this</span>.$emit(<span class="hljs-string">&apos;selectionchange&apos;</span>, <span class="hljs-keyword">this</span>.selectedNodes);
        }
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x6267;&#x884C;&#x9ED8;&#x8BA4;&#x754C;&#x9762;&#x884C;&#x4E3A;</p></blockquote>

<p>&#x5982;&#x679C;&#x8282;&#x70B9;&#x914D;&#x7F6E;&#x4E86;&#x4E0A;&#x4E0B;&#x6587;&#x83DC;&#x5355;&#x4E14;&#x8282;&#x70B9;&#x914D;&#x7F6E;&#x6709;&#x9ED8;&#x8BA4;&#x754C;&#x9762;&#x884C;&#x4E3A;&#xFF0C;&#x53CC;&#x51FB;&#x6811;&#x8282;&#x70B9;&#x65F6;&#x5C06;&#x4F1A;&#x89E6;&#x53D1;&#x8BE5;&#x754C;&#x9762;&#x884C;&#x4E3A;&#x5E76;&#x629B;&#x51FA;nodedblclick&#x4E8B;&#x4EF6;&#x3002;</p>
<pre><code class="lang-typescript">/**
     * &#x6267;&#x884C;&#x9ED8;&#x8BA4;&#x754C;&#x9762;&#x884C;&#x4E3A;
     *
     * @param {*} node
     * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
     */
    public doDefaultAction(node: any) {
        if (node &amp;&amp; node.data) {
            const data: any = node.data;
            const tags: string[] = data.id.split(&apos;;&apos;);
&lt;#if ctrl.getPSDETreeNodes()??&gt;
&lt;#list ctrl.getPSDETreeNodes() as node&gt;
&lt;#if node.getPSDEContextMenu()?? &amp;&amp; node.getDefaultPSUIAction()??&gt;
&lt;#assign contextMenu = node.getPSDEContextMenu()/&gt;
            if (tags[0] === &quot;${contextMenu.getOwner().getNodeType()}&quot;) {
                this.${contextMenu.name}_click({tag: &apos;${node.getDefaultPSUIAction().name}&apos;});
            }
&lt;/#if&gt;
&lt;/#list&gt;
&lt;/#if&gt;
        }
        this.$emit(&apos;nodedblclick&apos;, this.selectedNodes);
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x5237;&#x65B0;&#x8282;&#x70B9;</p></blockquote>

<p>&#x5C06;&#x89C6;&#x56FE;&#x53C2;&#x6570;&#x6574;&#x5408;&#x5230;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x9644;&#x52A0;&#x53C2;&#x6570;&#x4E2D;&#xFF0C;&#x6839;&#x636E;&#x5E94;&#x7528;&#x4E0A;&#x4E0B;&#x6587;&#x548C;&#x5F53;&#x524D;&#x8282;&#x70B9;&#x9644;&#x52A0;&#x53C2;&#x6570;&#x4ECE;&#x90E8;&#x4EF6;&#x670D;&#x52A1;&#x5BF9;&#x8C61;&#x4E2D;&#x83B7;&#x53D6;&#x8282;&#x70B9;&#x6570;&#x636E;&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x5C55;&#x5F00;&#x8282;&#x70B9;&#x3002;&#x5982;&#x679C;&#x662F;&#x5237;&#x65B0;&#x7236;&#x8282;&#x70B9;&#x5219;&#x5C06;&#x5F53;&#x524D;&#x9009;&#x4E2D;&#x6570;&#x636E;&#x9879;&#x7F6E;&#x7A7A;&#xFF0C;&#x6700;&#x540E;&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#x9879;&#x3002;</p>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x5237;&#x65B0;&#x8282;&#x70B9;
     *
     * @public
     * @param {*} [curContext] &#x5F53;&#x524D;&#x8282;&#x70B9;&#x4E0A;&#x4E0B;&#x6587;
     * @param {*} [arg={}] &#x5F53;&#x524D;&#x8282;&#x70B9;&#x9644;&#x52A0;&#x53C2;&#x6570;
     * @param {boolean} parentnode &#x662F;&#x5426;&#x662F;&#x5237;&#x65B0;&#x7236;&#x8282;&#x70B9;
     * @memberof UsrBase
     */</span>
    <span class="hljs-keyword">public</span> refresh_node(curContext:<span class="hljs-built_in">any</span>,arg: <span class="hljs-built_in">any</span> = {}, parentnode: <span class="hljs-built_in">boolean</span>): <span class="hljs-built_in">void</span> {
        <span class="hljs-keyword">const</span> { srfnodeid: id } = arg;
        <span class="hljs-built_in">Object</span>.assign(arg,{viewparams:<span class="hljs-keyword">this</span>.viewparams});
        <span class="hljs-keyword">const</span> <span class="hljs-keyword">get</span>: Promise&lt;<span class="hljs-built_in">any</span>&gt; = <span class="hljs-keyword">this</span>.service.getNodes(<span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(<span class="hljs-keyword">this</span>.context)),arg);
        <span class="hljs-keyword">get</span>.then((response: <span class="hljs-built_in">any</span>) =&gt; {
            <span class="hljs-keyword">if</span> (!response || response.status !== <span class="hljs-number">200</span>) {
                <span class="hljs-keyword">this</span>.$Notice.error({ title: (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;app.commonWords.wrong&apos;</span>) as <span class="hljs-built_in">string</span>), desc: response.info });
                <span class="hljs-keyword">return</span>;
            }
            <span class="hljs-keyword">const</span> _items = [...response.data];
            <span class="hljs-keyword">this</span>.formatExpanded(_items);
            <span class="hljs-keyword">const</span> tree: <span class="hljs-built_in">any</span> = <span class="hljs-keyword">this</span>.$refs.tree;
            tree.updateKeyChildren(id, _items);
            <span class="hljs-keyword">if</span> (parentnode) {
                <span class="hljs-keyword">this</span>.currentselectedNode = {};
            }
            <span class="hljs-keyword">this</span>.$forceUpdate();
            <span class="hljs-keyword">this</span>.setDefaultSelection(_items);
        }).catch((response: <span class="hljs-built_in">any</span>) =&gt; {
            <span class="hljs-keyword">if</span> (response &amp;&amp; response.status === <span class="hljs-number">401</span>) {
                <span class="hljs-keyword">return</span>;
            }
            <span class="hljs-keyword">this</span>.$Notice.error({ title: (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;app.commonWords.wrong&apos;</span>) as <span class="hljs-built_in">string</span>), desc: response.info });
        });
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x586B;&#x5145;&#x8282;&#x70B9;</p></blockquote>

<p>&#x5728;&#x586B;&#x5145;&#x8282;&#x70B9;&#x65F6;&#xFF0C;&#x4F1A;&#x6839;&#x636E;&#x8282;&#x70B9;&#x7684;&#x7C7B;&#x578B;&#x6765;&#x586B;&#x5145;&#x8282;&#x70B9;&#xFF1A;&#x8282;&#x70B9;&#x7C7B;&#x578B;&#x4E3A;&#x9759;&#x6001;&#x65F6;&#xFF0C;&#x5219;&#x76F4;&#x63A5;&#x586B;&#x5145;&#x8282;&#x70B9;&#xFF1B;&#x8282;&#x70B9;&#x7C7B;&#x578B;&#x4E3A;&#x52A8;&#x6001;(&#x4EE3;&#x7801;&#x8868;)&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x4E3A;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x5219;&#x4ECE;&#x5168;&#x5C40;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x4E2D;&#x83B7;&#x53D6;&#x4EE3;&#x7801;&#x8868;&#x6765;&#x586B;&#x5145;&#x8282;&#x70B9;&#xFF0C;&#x5982;&#x679C;&#x4E3A;&#x52A8;&#x6001;&#x4EE3;&#x7801;&#x8868;&#x5219;&#x4ECE;&#x4EE3;&#x7801;&#x8868;&#x670D;&#x52A1;&#x5BF9;&#x8C61;&#x4E2D;&#x83B7;&#x53D6;&#x4EE3;&#x7801;&#x8868;&#x6765;&#x586B;&#x5145;&#x8282;&#x70B9;&#xFF1B;&#x8282;&#x70B9;&#x7C7B;&#x578B;&#x4E3A;&#x52A8;&#x6001;(&#x5B9E;&#x4F53;)&#x65F6;&#xFF0C;&#x5219;&#x4ECE;&#x5B9E;&#x4F53;&#x670D;&#x52A1;&#x4E2D;&#x83B7;&#x53D6;&#x6570;&#x636E;&#x586B;&#x5145;&#x8282;&#x70B9;&#x3002;&#x5E73;&#x53F0;&#x914D;&#x7F6E;&#x7684;&#x8282;&#x70B9;&#x7C7B;&#x578B;&#xFF0C;&#x662F;&#x5426;&#x9ED8;&#x8BA4;&#x5C55;&#x5F00;&#xFF0C;&#x4EC5;&#x5C55;&#x5F00;&#x9996;&#x8282;&#x70B9;&#xFF0C;&#x662F;&#x5426;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#xFF0C;&#x56FE;&#x6807;&#xFF0C;&#x6811;&#x8282;&#x70B9;&#x5173;&#x7CFB;&#x7B49;&#x4FE1;&#x606F;&#x90FD;&#x4F1A;&#x53D1;&#x5E03;&#x5E76;&#x586B;&#x5145;&#x5230;&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x4E2D;&#x3002;&#x5E76;&#x4E14;&#x8282;&#x70B9;&#x652F;&#x6301;3&#x79CD;&#x641C;&#x7D22;&#x6A21;&#x5F0F;&#xFF1A;&#x6709;&#x641C;&#x7D22;&#x65F6;&#x542F;&#x7528;&#xFF0C;&#x65E0;&#x641C;&#x7D22;&#x65F6;&#x542F;&#x7528;&#xFF0C;&#x5168;&#x90E8;&#x542F;&#x7528;&#x3002;&#x5982;&#x8FC7;&#x662F;&#x5728;&#x6811;&#x5BFC;&#x822A;&#x89C6;&#x56FE;&#x4E2D;&#xFF0C;&#x5F53;&#x914D;&#x7F6E;&#x4E86;&#x5BFC;&#x822A;&#x89C6;&#x56FE;&#x548C;&#x5BFC;&#x822A;&#x5173;&#x7CFB;&#x540E;&#x5C06;&#x4F1A;&#x628A;&#x5BFC;&#x822A;&#x4E0A;&#x4E0B;&#x6587;&#xFF0C;&#x5BFC;&#x822A;&#x53C2;&#x6570;&#x4E5F;&#x4F1A;&#x586B;&#x5145;&#x5230;&#x8282;&#x70B9;&#x4FE1;&#x606F;&#x4E2D;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="TREEEXPBAR.html" class="navigation navigation-prev " aria-label="Previous page: 树导航">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="TREEGRID.html" class="navigation navigation-next " aria-label="Next page: 树表格">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"树视图","level":"2.3.22","depth":2,"next":{"title":"树表格","level":"2.3.23","depth":2,"path":"CTRLS/TREEGRID.md","ref":"./CTRLS/TREEGRID.md","articles":[]},"previous":{"title":"树导航","level":"2.3.21","depth":2,"path":"CTRLS/TREEEXPBAR.md","ref":"./CTRLS/TREEEXPBAR.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"CTRLS/TREEVIEWUNIT.md","mtime":"2020-10-27T06:11:11.671Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-02T06:38:45.289Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

